# ifndef INPUTINFO_H
# define INPUTINFO_H 

#include <iostream>
#include <fstream>
#include <ios>
#include <sstream>

using namespace std;
//! class that decodes the command line arguments
class cInputInfo{
	public: 
		cInputInfo(char argc, char *argv[]);
		char dirname[256]; //!<the dirname 
		int cardNo; //!< the number of the card; used to analise data when multiple cards are used in a run
		int detId; //!< detector ID to be used  =2*
		char outRootFileName[256]; //!<the root of the output filename =default*
		int deadTime; //!<the desired deadtime value in microseconds =10*
		int deadType; //!< the imposed dead time type: =1->EDT; =0*->NEDT
		
		
		
		friend ostream& operator<< (ostream& output, const cInputInfo p);
    	friend istream& operator>> (istream& input, cInputInfo& p);
	public:
		int extraAnalysis; //!< if extra analyis is wanted:=0* ->no analysis =1 ->TID; =2->TID+TIA
		int e1_low, e1_high; //!< the first energy gate  [30,31]*
		int e2_low, e2_high; //!<the second energy gate [30,31]*
		int TID_nBins; //!< the number of bins of the TID
		float TID_max; //!< the maximum value of the TID
		int deltaT; //the time interval for the TIA (microseconds) =10*  
	public:
		stringstream ssdir,ssDT,ssE1,ssE2;
		};
#endif
